import request from "@/uview-ui/libs/request/index.js";

// 客户id
export function kfindex() {
	return request.get("/addons/fastim/api.user/index")
}
// 我的邀请码
export function userCode() {
	return request.get("/addons/fastim/api.user/code")
}
// 成员列表 
export function memberList() {
	return request.get("/addons/fastim/api.user/memberList")
}
// 成员详情 
export function memberDetail(data) {
	return request.get("/addons/fastim/api.user/memberDetail", data)
}
// 添加/修改成员
export function addMember(data) {
	return request.post("/addons/fastim/api.user/addMember", data)
}
// 删除成员
export function delMember(data) {
	return request.post("/addons/fastim/api.user/delMember", data)
}
// 工作经历
export function memberWork(data) {
	return request.post("/addons/fastim/api.user/memberWork", data)
}

// 护航员信息 
export function getDoctorInfo(data) {
	return request.get("/addons/fastim/api.user/getDoctorInfo", data)
}
// 修改护航员信息 
export function editDoctorInfo(data) {
	return request.post("/addons/fastim/api.user/editDoctorInfo", data)
}
// 用户信息 
export function getUserInfo(data) {
	return request.get("/addons/fastim/api.user/getUserInfo", data)
}
// 修改用户信息 
export function editUserInfo(data) {
	return request.post("/addons/fastim/api.user/editUserInfo", data)
}
// 工作经历详情
export function workDetail(data) {
	return request.get("/addons/fastim/api.user/workDetail", data)
}
// 修改工作经历 
export function addWork(data) {
	return request.post("/addons/fastim/api.user/addWork", data)
}
// 删除经历 
export function delWork(data) {
	return request.post("/addons/fastim/api.user/delWork", data)
}

// 我的护航员  患者端
export function myProtect(data) {
	return request.get("/addons/fastim/api.order/myProtect", data)
}
// 我的感谢 护航员端
export function myThank(data) {
	return request.get("/addons/fastim/api.order/myThank", data)
}
// 感谢详情 护航员绑定成员详情
export function protectDetail(data) {
	return request.get("/addons/fastim/api.order/protectDetail", data)
}
// 护航员成员绑定列表页
export function bindMemberDetail(data) {
	return request.get("/addons/fastim/api.order/bindMemberDetail", data)
}
// 护航员绑定成员
export function bindMember(data) {
	return request.get("/addons/fastim/api.order/bindMember", data)
}


// 填写咨询问卷页面
export function adviceIndex(data) {
	return request.get("/addons/fastim/api.advice/index", data)
}
// 选择患者
export function selectMember(data) {
	return request.get("/addons/fastim/api.advice/selectMember", data)
}
//提交咨询问卷 
export function addAdvice(data) {
	return request.post("/addons/fastim/api.advice/add", data)
}
// 咨询列表  患者端
export function userList(data) {
	return request.get("/addons/fastim/api.advice/userList", data)
}
// 取消咨询
export function zixuncancel(data) {
	return request.get("/addons/fastim/api.advice/cancel", data)
}
// 咨询列表  护航员端
export function doctorList(data) {
	return request.get("/addons/fastim/api.advice/doctorList", data)
}
// 咨询详情
export function zixunDetail(data) {
	return request.get("/addons/fastim/api.advice/detail", data)
}
// 取消咨询 
export function zixunCancel(data) {
	return request.get("/addons/fastim/api.advice/cancel", data)
}
// 处方详情 
export function prescriptionDetail(data) {
	return request.get("/addons/fastim/api.advice/prescriptionDetail", data)
}
// 选择药品 
export function selectdrug() {
	return request.get("/addons/fastim/api.advice/drug")
}
// 开处方 
export function prescription(data) {
	return request.post("/addons/fastim/api.advice/prescription", data)
}

// 回访列表 患者端 
export function followuserList(data) {
	return request.get("/addons/fastim/api.follow/userList", data)
}
//  护航员端
export function followdoctorList(data) {
	return request.get("/addons/fastim/api.follow/doctorList", data)
}
// 回访 
export function addfollow(data) {
	return request.post("/addons/fastim/api.follow/add", data)
}
// 发送小程序通知
export function sendNotification(data) {
	return request.post("/addons/fastim/api.follow/sendNotification", data)
}

// 会员列表
export function getUserList(data) {
	return request.post("/addons/fastim/api.user/getUserList", data)
}


// 再次回访 
export function addcopyfollow(data) {
	return request.post("/addons/fastim/api.follow/copyList", data)
}
// 回访详情
export function followdetail(data) {
	return request.get("/addons/fastim/api.follow/detail", data)
}
// 用户反馈
export function userback(data) {
	return request.post("/addons/fastim/api.follow/userback", data)
}
// 笔记列表
export function noteList() {
	return request.get("/addons/fastim/api.user/noteList")
}
// 新增笔记 
export function addNote(data) {
	return request.post("/addons/fastim/api.user/addNote", data)
}
//笔记查看
export function noteDetail(data) {
	return request.get("/addons/fastim/api.user/noteDetail", data)
}
// 笔记删除
export function delNote(data) {
	return request.post("/addons/fastim/api.user/delNote", data)
}
// 查看用户资料
export function userInfo(data) {
	return request.get("/addons/fastim/api.user/userInfo", data)
}

// 模版编辑页
export function template() {
	return request.get("/addons/fastim/api.advice/template")
}
// 添加模版页面 
export function moduleList() {
	return request.get("/addons/fastim/api.advice/moduleList")
}
// 提交模版编辑
export function editTemplate(data) {
	return request.post("/addons/fastim/api.advice/editTemplate", data)
}
// 预览模版
export function previewTemplate(data) {
	return request.get("/addons/fastim/api.advice/previewTemplate", data)
}

// 创建聊天
export function chat(data) {
	return request.get("/addons/fastim/api.user/getSessionId", data)
}

// 感谢 商品列表 
export function goods() {
	return request.get("/addons/fastim/api.order/goods")
}

// 商品详情 
export function confirm(data) {
	return request.get("/addons/fastim/api.order/confirm", data)
}
// 订单创建
export function createOrder(data) {
	return request.post("/addons/fastim/api.order/createOrder", data)
}
// 微信支付
export function payOrder(data) {
	return request.post("/addons/fastim/api.order/payOrder", data)
}
// 商品支付金额为0时
export function zeroPay(data) {
	return request.post("/addons/fastim/api.order/zeroPay", data)
}

//好友拓展数 
export function expandedFriends() {
	return request.get("/addons/fastim/api.user/expandedFriends")
}
// 点赞数
export function getLike(data) {
	return request.get("/addons/fastim/api.user/getLike", data)
}
export function like(data) {
	return request.post("/addons/fastim/api.user/like", data)
}
// 优惠券
export function getCoupon() {
	return request.get("/addons/fastim/api.user/getCoupon")
}
// 分享转发领取优惠券
export function addCoupon() {
	return request.post("/addons/fastim/api.user/addCoupon")
}
//广告 
export function aroundNotice() {
	return request.get("/addons/fastim/api.index/ad")
}
//平台公告
export function sysNotice() {
	return request.get("/addons/fastim/api.index/sysNotice")
}
//护航员公告
export function doctorNotice(data) {
	return request.get("/addons/fastim/api.index/doctorNotice", data)
}

// 工作列表
export function workList() {
	return request.get("/addons/fastim/api.user/workList")
}

// 钱包
export function money(data) {
	return request.get("/addons/fastim/api.user/money", data)
}
// 账单详情
export function moneyDetail(data) {
	return request.get("/addons/fastim/api.user/moneyDetail", data)
}
export function withdrawal(data) {
	return request.post("/addons/fastim/api.user/withdrawal", data)
}

// 修改备注
export function editUserRemark(data) {
	return request.post("/addons/fastim/api.user/editUserRemark", data)
}

// 医生公告
export function editNotice(data) {
	return request.post("/addons/fastim/api.user/editNotice", data)
}

//修改结算信息
export function editSettlementInfo(data) {
	return request.post("/addons/fastim/api.user/editSettlementInfo", data)
}
export function sponserList(data){
	return request.get("/addons/fastim/api.sponser/list", data)
}
export function applySponser(data){
	return request.post("/addons/fastim/api.sponser/apply",data)
}
export function sponserComment(data){
	return request.post("/addons/fastim/api.sponser/comment",data)
}